<template>
  <div>
    <el-button style="padding: 5px" :size="'small'" type="primary"
               @click="props.tableItem.btnArray[0].handle(props.scope)" text>详情</el-button>
    <el-button style="padding: 5px" :size="'small'" type="primary" v-if="props.scope.publishedFlag == 0"
               @click="props.tableItem.btnArray[1].handle(props.scope)" text>修改</el-button>
    <el-button style="padding: 5px" :size="'small'" type="primary"
               @click="props.tableItem.btnArray[2].handle(props.scope)" text>下载</el-button>
    <el-button style="padding: 5px" :size="'small'" type="primary" v-if="props.scope.publishedFlag == 0"
               @click="props.tableItem.btnArray[3].handle(props.scope)" text>上架</el-button>
    <el-button style="padding: 5px" :size="'small'" type="danger" v-if="props.scope.publishedFlag == 1"
               @click="props.tableItem.btnArray[4].handle(props.scope)" text>下架</el-button>
  </div>
</template>
<script setup>
import { onMounted } from 'vue'
import $button from '@/button'
const props = defineProps({ scope: { default: function () { return [] } }, tableItem: { default: function () { return [] } } })
onMounted(() => {
})
</script>
